package com.p04.homework.two;

public class Employee extends Role {

    /**
     * 薪资
     */
    private double salary;
    /**
     * 员工的编号（static）
     */
    private  static int  empId;

    public Employee() {
        super();
    }

    public Employee(String name, double salary) {
        super(name);
        this.salary = salary;
    }

    public Employee(String name, int age, double salary) {
        super(name, age);
        this.salary = salary;
    }

    public Employee(String name, String gender, int age, double salary) {
        super(name, gender, age);
        this.salary = salary;
    }

    @Override
    public void play() {
        System.out.println("员工在摸鱼。。。");
    }

    public final void sing(){
        System.out.println("员工在唱歌");
    }
}
